var CusNameSpace = window.CusNameSpace || {};
/*
 Class UpdateTopState
 Function  Top Refrush
 */
//程序模块
CusNameSpace.CusPageProgramMode = function () {
    this.name = 'CusPageProgramMode';
    
    this.read_dpoint_x = 0.0;
    this.read_dpoint_y = 0.0;
    this.read_dpoint_r = 0.0;
    this.instruction_speedratio = 0;
    this.instruction_direction = 0;   //0反方向１正方向
    this.instruction_vmarknumber = 0;
    this.instruction_qrcodenumber = 0;
    this.instruction_lasernumber = 0;
    this.instruction_detect = 0;
    this.instruction_dp_type=enumTypeInstructionDpType.kDpTypeOp; //
    
    //程序打开跳转到文件内容列表－主动出发点击事件
    this.jumpProgramWindowOpenToView="";
    this.jumpProgramWindowBegin=0;
    this.jumpProgramWindowHandleTimeOut = 0;
    //程序显示语言
    this.languageProgramString=enumTypeProgramLanguageType.kLanuageCh;
    
};

CusNameSpace.CusPageProgramMode.prototype.onInitData = function () {


};
CusNameSpace.CusPageProgramMode.prototype.jumpProgramWindowHandle = function () {
    if(this.jumpProgramWindowHandleTimeOut%5 === 0)
    {
        if(this.jumpProgramWindowBegin === 1 && (this.jumpProgramWindowOpenToView.length>0))
        {
            window.objGlobalManage.objCusProtocol.func_get_robot_program_files_strings();
        }
    }
    this.jumpProgramWindowHandleTimeOut++;
};

